package com.pay.cloud.fragment;

import androidx.fragment.app.FragmentManager;
import androidx.fragment.app.FragmentTransaction;

import com.google.zxing.BarcodeFormat;


public class WifiScanFragment extends AbstractScanFragment {

    public WifiScanFragment() {
        super(BarcodeFormat.QR_CODE);
    }

    @Override
    protected void execute() throws Exception {
        TipVerticalFragment fragment = new TipVerticalFragment(TipFragment.TipType.WAIT, "请扫码配置WIFI");
        FragmentManager fragmentManager = getFragmentManager();
        FragmentTransaction fragmentTransaction = fragmentManager.beginTransaction();
        fragmentTransaction.replace(getView().getId(), fragment);
        fragmentTransaction.commit();
    }
}
